import request from '@/utils/request'

// 查询民警信息列表
export function listPolice(query) {
  return request({
    url: '/system/police/list',
    method: 'get',
    params: query
  })
}

// 查询民警信息列表
export function searchPolice(query) {
  return request({
    url: '/system/police/search',
    method: 'get',
    params: query
  })
}

// 查询民警信息详细
export function getPolice(id) {
  return request({
    url: '/system/police/' + id,
    method: 'get'
  })
}

// 新增民警信息
export function addPolice(data) {
  return request({
    url: '/system/police',
    method: 'post',
    data: data
  })
}

// 修改民警信息
export function updatePolice(data) {
  return request({
    url: '/system/police',
    method: 'put',
    data: data
  })
}

// 删除民警信息
export function delPolice(id) {
  return request({
    url: '/system/police/' + id,
    method: 'delete'
  })
}
